package com.tudouji.project.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户对象 tuser
 * 
 * @author wf
 * @date 2020-12-29
 */
public class Tuser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一编码 */
    private String guid;

    /** 登录名称 */
    @Excel(name = "登录名称")
    private String loginname;

    /** 登录密码 */
    @Excel(name = "登录密码")
    private String password;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String telphone;

    /** 性别0:女；1:男 */
    @Excel(name = "性别0:女；1:男")
    private Long sex;

    /** 出生年月日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生年月日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String realname;

    /** 居住地址 */
    @Excel(name = "居住地址")
    private String liveadress;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdate;

    /** 最近更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastupdate;

    /** 所属公司guid */
    @Excel(name = "所属公司guid")
    private String companyguid;

    /** 用户类型1:普通用户;2:管理员; */
    @Excel(name = "用户类型1:普通用户;2:管理员;")
    private Long usertype;

    /** $column.columnComment */
    @Excel(name = "用户类型1:普通用户;2:管理员;")
    private String openid;

    /** 维度 */
    @Excel(name = "维度")
    private String latitude;

    /** 经度 */
    @Excel(name = "经度")
    private String longitude;

    /** 证件类型
1身份证
2军官证 */
    @Excel(name = "证件类型 1身份证 2军官证")
    private String idcartype;

    /** 证件号码 */
    @Excel(name = "证件号码")
    private String idcardnumber;

    /** 居住省份 */
    @Excel(name = "居住省份")
    private String province;

    /** 居住城市 */
    @Excel(name = "居住城市")
    private String city;

    /** 区县 */
    @Excel(name = "区县")
    private String area;

    /** 操作人ID */
    @Excel(name = "操作人ID")
    private String opertorid;

    /** 最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastupdtime;

    /** 分组id */
    @Excel(name = "分组id")
    private String groupid;

    /** 钉钉用户id */
    @Excel(name = "钉钉用户id")
    private String dingtalkuserid;

    /** 状态:1-正常,2-禁用 */
    @Excel(name = "状态:1-正常,2-禁用")
    private Integer status;

    public void setGuid(String guid) 
    {
        this.guid = guid;
    }

    public String getGuid() 
    {
        return guid;
    }
    public void setLoginname(String loginname) 
    {
        this.loginname = loginname;
    }

    public String getLoginname() 
    {
        return loginname;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setTelphone(String telphone) 
    {
        this.telphone = telphone;
    }

    public String getTelphone() 
    {
        return telphone;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setRealname(String realname) 
    {
        this.realname = realname;
    }

    public String getRealname() 
    {
        return realname;
    }
    public void setLiveadress(String liveadress) 
    {
        this.liveadress = liveadress;
    }

    public String getLiveadress() 
    {
        return liveadress;
    }
    public void setCreatedate(Date createdate) 
    {
        this.createdate = createdate;
    }

    public Date getCreatedate() 
    {
        return createdate;
    }
    public void setLastupdate(Date lastupdate) 
    {
        this.lastupdate = lastupdate;
    }

    public Date getLastupdate() 
    {
        return lastupdate;
    }
    public void setCompanyguid(String companyguid) 
    {
        this.companyguid = companyguid;
    }

    public String getCompanyguid() 
    {
        return companyguid;
    }
    public void setUsertype(Long usertype) 
    {
        this.usertype = usertype;
    }

    public Long getUsertype() 
    {
        return usertype;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setLatitude(String latitude) 
    {
        this.latitude = latitude;
    }

    public String getLatitude() 
    {
        return latitude;
    }
    public void setLongitude(String longitude) 
    {
        this.longitude = longitude;
    }

    public String getLongitude() 
    {
        return longitude;
    }
    public void setIdcartype(String idcartype) 
    {
        this.idcartype = idcartype;
    }

    public String getIdcartype() 
    {
        return idcartype;
    }
    public void setIdcardnumber(String idcardnumber) 
    {
        this.idcardnumber = idcardnumber;
    }

    public String getIdcardnumber() 
    {
        return idcardnumber;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }
    public void setOpertorid(String opertorid) 
    {
        this.opertorid = opertorid;
    }

    public String getOpertorid() 
    {
        return opertorid;
    }
    public void setLastupdtime(Date lastupdtime) 
    {
        this.lastupdtime = lastupdtime;
    }

    public Date getLastupdtime() 
    {
        return lastupdtime;
    }
    public void setGroupid(String groupid) 
    {
        this.groupid = groupid;
    }

    public String getGroupid() 
    {
        return groupid;
    }
    public void setDingtalkuserid(String dingtalkuserid) 
    {
        this.dingtalkuserid = dingtalkuserid;
    }

    public String getDingtalkuserid() 
    {
        return dingtalkuserid;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("guid", getGuid())
            .append("loginname", getLoginname())
            .append("password", getPassword())
            .append("telphone", getTelphone())
            .append("sex", getSex())
            .append("birthday", getBirthday())
            .append("realname", getRealname())
            .append("liveadress", getLiveadress())
            .append("createdate", getCreatedate())
            .append("lastupdate", getLastupdate())
            .append("companyguid", getCompanyguid())
            .append("usertype", getUsertype())
            .append("openid", getOpenid())
            .append("latitude", getLatitude())
            .append("longitude", getLongitude())
            .append("idcartype", getIdcartype())
            .append("idcardnumber", getIdcardnumber())
            .append("province", getProvince())
            .append("city", getCity())
            .append("area", getArea())
            .append("opertorid", getOpertorid())
            .append("lastupdtime", getLastupdtime())
            .append("groupid", getGroupid())
            .append("dingtalkuserid", getDingtalkuserid())
            .append("status", getStatus())
            .toString();
    }
}
